package cn.kgc.service;

import cn.kgc.dto.add.WmsPurchaseAddDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.kgc.entity.WmsPurchase;

/**
 * 采购信息(WmsPurchase)表服务接口
 *
 * @author makejava
 * @since 2022-12-07 11:06:15
 */
public interface WmsPurchaseService extends IService<WmsPurchase> {

    /**
     *  新建采购单
     * @param wmsPurchaseAddDTO
     * @return
     */
    boolean saveWmsPurchase(WmsPurchaseAddDTO wmsPurchaseAddDTO);

    //更新采购人的信息以及状态
    boolean allocationWmsPurchase(long assigneeId,String assigneeName,String phone,Long id);

    //采购人员接收采购任务
    boolean acceptWmsPurchase(long id);

    //完成采购单，商品入库(更新采购单的状态，更新商品库存表的数据)
    boolean finishWmsPurchase(long id);
}
